import request from '@/utils/request'

export function getProductList(data) {
    return request({
      url: '/product/getlist',
      headers: {
        isToken: false
      },
      method: 'post',
      data: data
    })
  }

export function addProduct(data) {
    return request({
      url: '/product/addProduct',
      headers: {
        isToken: false
      },
      method: 'post',
      data: data
    })
  }

  export function updateProduct(data) {
    return request({
      url: '/product/updateProduct',
      headers: {
        isToken: false
      },
      method: 'post',
      data: data
    })
  }

  export function deleteProduct(data) {
    return request({
      url: '/product/deleteProduct',
      headers: {
        isToken: false
      },
      method: 'post',
      data: data
    })
  }
